package com.wenwu.service;

import java.util.List;

import com.wenwu.common.bean.Resource;
import com.wenwu.common.exception.RelicsException;

/**
 * @project ATHome-Manager-Service
 * @class ResourceService.java
 * @author zhujiagui E-mail:<zhujiagui@zkingsoft.com>
 * @date 2015年3月4日 上午11:19:18
 * @description 资源管理模块
 */
public interface ResourceService {
	List<Resource> selectAllList() throws RelicsException;

	int addResource(Resource resource) throws RelicsException;

	int updateResource(Resource resource) throws RelicsException;

	Resource selectByKey(Integer sourceId) throws RelicsException;

	int deleteResourceByKey(List<?> list) throws RelicsException;

	List<Resource> selectResourceByRoleid(List<?> ids) throws RelicsException;
}
